<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/Application/Home/View/Public/sys/style/bootstrap.min.css?_v=<?php echo (C("version")); ?>" type='text/css' />
    <link rel="stylesheet" href="/Application/Home/View/Public/sys/style/bootstrap-responsive.min.css?_v=<?php echo (C("version")); ?>" type='text/css' />
    <link rel="stylesheet" href="/Application/Home/View/Public/sys/style/glDatePicker.default.css?_v=<?php echo (C("version")); ?>" type='text/css' />
    <link rel="stylesheet" href="/Application/Home/View/Public/sys/style/select2.css?_v=<?php echo (C("version")); ?>" type='text/css' />
    <link rel="stylesheet" href="/Application/Home/View/Public/sys/style/select2-bootstrap.css?_v=<?php echo (C("version")); ?>" type='text/css' />
    <link rel="stylesheet" href="/Application/Home/View/Public/sys/font-awesome/css/font-awesome.css?_v=<?php echo (C("version")); ?>" type='text/css' />
    <link rel="stylesheet" href='/Application/Home/View/Public/css/adam-base.css?_v=<?php echo (C("version")); ?>' type='text/css'>
    <link rel="stylesheet" href='/Application/Home/View/Public/css/adam-style.css?_v=<?php echo (C("version")); ?>' type='text/css'>
</head>
<body onselectstart="return false">
<div class="ad-doc-search-wrap" id="ad-js-sreachwrap">
<div class="ad-doc-search-wrap-title">
    <div class="ltitle">
        <i class="fa fa-search"></i> 选择条件
    </div>
    <button id="ad-js-closeallsearchwrap" class="btn btn-danger btn-sm">取消</button>
    <button id="ad-js-resetallsearchwrap" class="btn btn-default btn-sm"><i class="fa fa-refresh"></i> 重置条件</button>
    <button id="ad-js-saveallsearch" type="button" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> 添加条件</button>
    <button id="ad-js-submitallsearchwrap" class="btn btn-warning btn-sm"><i class="fa fa-search"></i> 确认条件</button>
</div>
<form class="form-horizontal" id="ad-js-allsearchform" method="post">
    <?php if(is_array($where)): $i = 0; $__LIST__ = $where;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ConditionList): $mod = ($i % 2 );++$i; if(($ConditionList["FieldType"]) == "1"): ?><div class="form-group-ad" data-name="<?php echo ($ConditionList["FieldColumn"]); ?>" data-title="<?php echo ($ConditionList["FieldName"]); ?>">
        <div class="input-group input-group-sm">
            <span class="input-group-addon">
                <label><?php echo ($ConditionList["FieldName"]); ?> </label>
            </span>
            <select multiple class="form-control ad-js-select" name="<?php echo ($ConditionList["FieldColumn"]); ?>[]" id="select_<?php echo ($ConditionList["FieldColumn"]); ?>">
            	<?php if(is_array($ConditionList["item"])): $i = 0; $__LIST__ = $ConditionList["item"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$Conditions): $mod = ($i % 2 );++$i;?><option value="<?php echo ($Conditions["id"]); ?>"><?php echo ($Conditions["title"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
            <?php if(($ConditionList["button"]) == "2"): ?><span class="input-group-addon" data-toggle="modal" data-target="#ad-js-searchModal1" style="border-left: 0;">
                    <i class="fa fa-pencil"></i>
                </span><?php endif; ?>
            <?php if(($ConditionList["button"]) == "1"): ?><span class="input-group-addon" data-toggle="modal" data-target="#ad-js-searchModal2" style="border-left: 0;">
                    <i class="fa fa-check-square-o"></i>
                </span><?php endif; ?>

        </div>
    </div><?php endif; ?>
    <?php if(($ConditionList["FieldType"]) == "2"): ?><div class="form-group-ad" data-name="<?php echo ($ConditionList["FieldColumn"]); ?>" data-title="<?php echo ($ConditionList["FieldName"]); ?>">
        <div class="input-group input-group-sm">
                    <span class="input-group-addon">
                        <label>
                            <?php echo ($ConditionList["FieldName"]); ?> </label>
                    </span>
            <input name="<?php echo ($ConditionList["FieldColumn"]); ?>[min]" type="text"  class="form-control ad-js-timer	" placeholder="请输入最小值">
                            <span class="input-group-addon ad-doc-noborderright">
                                 <i class="fa fa-list-ul"></i>
                                                     </span>
            <span class="input-group-btn"> 　至　</span>
            <input name="<?php echo ($ConditionList["FieldColumn"]); ?>[max]" type="text"  class="form-control ad-js-timer" placeholder="请输入最大值">
                    <span class="input-group-addon">
                   <i class="fa fa-list-ul"></i>
                   </span>
        </div>
    </div><?php endif; ?>
    <?php if(($ConditionList["FieldType"]) == "3"): ?><div class="form-group-ad" data-name="<?php echo ($ConditionList["FieldColumn"]); ?>" data-title="<?php echo ($ConditionList["FieldName"]); ?>">
        <div class="input-group input-group-sm">
                    <span class="input-group-addon">
                        <label><?php echo ($ConditionList["FieldName"]); ?> </label>
                    </span>
            <input name="<?php echo ($ConditionList["FieldColumn"]); ?>[min]" type="text"  class="form-control" placeholder="请输入最小值">
                    <span class="input-group-addon ad-doc-noborderright"><?php echo ($ConditionList["UomName"]); ?></span>
            		<span class="input-group-btn"> 　至　</span>
            <input name="<?php echo ($ConditionList["FieldColumn"]); ?>[max]" type="text"  class="form-control" placeholder="请输入最大值">
                    <span class="input-group-addon"><?php echo ($ConditionList["UomName"]); ?></span>
        </div>
    </div><?php endif; endforeach; endif; else: echo "" ;endif; ?>
</form>
</div>

<div class="ad-doc-title ad-doc-title-ext">
    <div class="ad-doc-titleLeft" id="ad-js-chartstitle"><i class="fa fa-bar-chart-o"></i> 图表数据</div>
    <div class="ad-doc-titleLeft ad-doc-condparent" id="ad-js-condparent">
        <div class="ad-doc-condTitle">已选条件：</div>
        <ul class="ad-doc-condwrapper" id="ad-js-condwrapper">暂无</ul>
        <script name="wAxis" class="templates" type="text/x-jquery-tmpl">
            <li><a id="${id}">${title}： {{html value}} <i class="fa fa-times"></i></a></li>
        </script>
    </div>
    <div class="ad-doc-titleRight" id="ad-js-obtns">
        <div class="btn-group btn-group-sm">
            <button id="ad-js-search" class="btn btn-warning btn-sm" type="button" style="margin-right: 0;"><i class="fa fa-search"></i> 选择条件</button>
            <button id="ad-js-saveallsearchdropdown" type="button" class="btn btn-warning btn-sm dropdown-toggle disabled" data-toggle="dropdown">
                <span class="caret"></span>
            </button>
            <ul id="ad-js-saveConditioncontainer" class="dropdown-menu" role="menu"></ul>
            <script name="saveCondition" class="templates" type="text/x-jquery-tmpl">
                <li><a data-cond="${data}" data-index="${index}"><span>${title}</span><samp><i class="fa fa-times"></i></samp></a></li>
            </script>
        </div>
        <button id="ad-js-configMode" class="btn btn-default btn-sm" type="button"><i class="fa fa-plus"></i> 创建模型</button>
        <button id="ad-js-colorLevels" class="btn btn-default btn-sm" type="button"><i class="fa fa-fire"></i> 打开色阶</button>
        <div class="dropdown ad-doc-dropdown" id="ad-js-dropdown">
            <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
                <i class="fa fa-bar-chart-o"></i> 显示图表
                <span class="caret"></span>
            </button>
            <ul id="ad-js-chartsList" class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1"></ul>
            <script name="chartsTemplate" class="templates" type="text/x-jquery-tmpl">
                <li><a data-tag="${value}">${title}</a></li>
            </script>

        </div>
        <button id="ad-js-saveCharts" class="btn btn-default btn-sm" type="button"><i class="fa fa-download"></i> 导出图片</button>
        <button id="copy" class="btn btn-default btn-sm" type="button"><i class="fa fa-download"></i> 导出EXCEL</button>
        <button class="btn btn-primary btn-sm" id="ad-js-submitModel" type="button"><i class="fa fa-save"></i> 保存模型</button>
        <button id="ad-js-exitCharts" class="btn btn-danger btn-sm" type="button"><i class="fa fa-times"></i> 返回</button>
    </div>
</div>
<div class="ad-doc-charts2" id="ad-js-chartsContainer"></div>
<div class="ad-doc-condcontainer" id="ad-js-condcontainer">
    <a class="ad-doc-sliderbar" id="ad-js-sliderbar"><i class="fa fa-plus"></i> 创建模型</a>
    <ul class="nav nav-tabs" id="ad-js-tabs2">
        <li class="active"><a href="#ad-js-dataAxis" data-toggle="tab"><i class="fa fa-table"></i> 配置表头</a></li>
        <li><a href="#ad-js-dataValue" data-toggle="tab"><i class="fa fa-bolt"></i> 统计方式</a></li>
        <li class="ad-doc-closeSide">
            <button id="ad-js-submitSide" type="button"><i class="fa fa-check"></i> 生成模型</button>
            <button id="ad-js-editSide" type="button"><i class="fa fa-edit"></i> 编辑</button>
            <button id="ad-js-resetSide" type="button"><i class="fa fa-refresh"></i> 重置</button>
            <button id="ad-js-closeSide" type="button"><i class="fa fa-times"></i> 返回</button>
        </li>
    </ul>
    <div class="tab-content">
        <div class="setAxis tab-pane active" id="ad-js-dataAxis">
            <p class="help-block"><i class="fa fa-question-circle"></i> <b>功能说明：</b>此处设置透视表格的表头，将以下表头拖拽右侧"预览区"，即可呈现预览结果</p>
<!--            <div class="checkbox-inline">
                <label>
                    <input type="checkbox" name="isXSum" id="ad-js-isXSum"> 是否横向合计
                </label>
            </div>
            <div class="checkbox-inline">
                <label>
                    <input type="checkbox" name="isYSum" id="ad-js-isYSum"> 是否纵向合计
                </label>
            </div>-->
            <p class="ad-doc-line"></p>
            <ul>
            	<?php if(is_array($item)): $i = 0; $__LIST__ = $item;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$im): $mod = ($i % 2 );++$i; if(($im["FieldType"]) == "2"): ?><li><a class="btn btn-default btn-sm" data-step="<?php echo ($im["rules"]); ?>" data-name="<?php echo ($im["FieldColumn"]); ?>"><?php echo ($im["FieldName"]); ?></a></li><?php endif; ?>
                </neq><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <p class="ad-doc-line"></p>
            <ul>
            	<?php if(is_array($item)): $i = 0; $__LIST__ = $item;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$im): $mod = ($i % 2 );++$i; if(($im["FieldType"]) == "1"): ?><li><a class="btn btn-default btn-sm" data-step="<?php echo ($im["rules"]); ?>" data-name="<?php echo ($im["FieldColumn"]); ?>"><?php echo ($im["FieldName"]); ?></a></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <p class="ad-doc-line"></p>
            <ul>
            	<?php if(is_array($item)): $i = 0; $__LIST__ = $item;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$im): $mod = ($i % 2 );++$i; if(($im["FieldType"]) == "3"): ?><li><a class="btn btn-default btn-sm" data-step="<?php echo ($im["rules"]); ?>" data-name="<?php echo ($im["FieldColumn"]); ?>"><?php echo ($im["FieldName"]); ?></a></li><?php endif; ?>
                </neq><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <p class="ad-doc-line"></p>
            <ul>
            	<?php if(is_array($item)): $i = 0; $__LIST__ = $item;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$im): $mod = ($i % 2 );++$i; if(($im["FieldType"]) == "4"): ?><li><a class="btn btn-default btn-sm" data-step="<?php echo ($im["rules"]); ?>" data-name="<?php echo ($im["FieldColumn"]); ?>"><?php echo ($im["FieldName"]); ?></a></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </ul>


        </div>
        <div class="setValue tab-pane" id="ad-js-dataValue">
            <p class="help-block"><i class="fa fa-question-circle"></i> <b>功能说明：</b>请选择统计项及统计方式与单位，即可在右侧"预览区"呈现预览结果</p>

			<?php if(is_array($iscount)): $i = 0; $__LIST__ = $iscount;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$mt): $mod = ($i % 2 );++$i;?><div class="form-group">
                <div class="input-group input-group-sm">
                    <span class="input-group-addon input-group-addon-ext">
                    <label><input type="checkbox" value="default" name="<?php echo ($mt["FieldColumn"]); ?>" data-title="<?php echo ($mt["FieldName"]); ?>"><?php echo ($mt["FieldName"]); ?></label>
                    </span>
                    <select class="form-control ad-js-select" multiple>
                    	<?php $thisRule=explode(',',strtolower($mt['CountRules'])); $selected=0; ?>
                    	<?php if(is_array($count)): $i = 0; $__LIST__ = $count;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ct): $mod = ($i % 2 );++$i; if(in_array(($ct["code"]), is_array($thisRule)?$thisRule:explode(',',$thisRule))): ?><option <?php if(($selected) == "0"): ?>selected="selected"<?php endif; ?> value='<?php echo (strtoupper($ct["code"])); ?>'><?php echo ($ct["title"]); ?></option>
                        <?php $selected=1; endif; endforeach; endif; else: echo "" ;endif; ?>
                    </select>

                    <select class="form-control ad-doc-selectlast">
                    	<?php if(is_array($uom)): $i = 0; $__LIST__ = $uom;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$um): $mod = ($i % 2 );++$i; if(($um["uomgroup"]) == $mt["UomGroup"]): ?><option value="<?php echo ($um["id"]); ?>" <?php if(($um["ismain"]) == "1"): ?>selected="selected"<?php endif; ?>><?php echo ($um["title"]); ?></option><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                    </select>
                </div>
            </div><?php endforeach; endif; else: echo "" ;endif; ?>

            <p class="ad-doc-line"></p>
        </div>

    </div>
</div>

<script name="nullData" class="templates" type="text/x-jquery-tmpl">
    <div class="ad-doc-nullData">查询无数据，请重新配置</div>
</script>

<div class="ad-doc-tablecontainer" id="ad-js-tablecontainer">
    <div class="ad-doc-nullData ad-doc-nullData-ext"><i class="fa fa-question-circle"></i> 此处为成交数据显示区，请先<span id="ad-js-setwhere">“选择条件”</span> => <span id="ad-js-setAxis2">“配置表头”</span> => 选择<span id="ad-js-setValue2">“统计方式”</span><br/>点击<span>“生成模型”</span>之后，分析数据立即呈现！</div>
</div>
<div class="ad-doc-tableAxisContainer" id="ad-js-tableAxisContainer">
    <div class="ad-doc-axis ad-doc-xAxis ad-js-target">
        <span>横向表头：</span>
        <div data-name="X" id="ad-js-xAxisCond">无</div>
    </div>
    <div class="ad-doc-axis ad-doc-yAxis ad-js-target">
        <span>纵向表头：</span>
        <div data-name="Y" id="ad-js-yAxisCond">无</div>
    </div>
    <div class="ad-doc-axis ad-doc-vAxis">
        <span>统计值：</span>
       <div data-name="V" id="ad-js-valueAxis">无</div>
    </div>
    <button id="ad-js-closeEditMode" type="button" class="btn btn-danger btn-sm"><i class="fa fa-times"></i> 返回</button>
</div>
<div class="ad-doc-tableViewContainer" id="ad-js-tableViewContainer">
    <div class="ad-doc-nullData ad-doc-nullData-ext"><i class="fa fa-question-circle"></i> 此处为预览区，可以预览你所设置的表，请先<span id="ad-js-setAxis">“配置表头”</span> => 选择<span id="ad-js-setValue">“统计方式”</span><br/>当点击<span>“生成模型”</span>后，完成分析并生成成交数据！</div>
</div>
<script name="xyAxis" class="templates" type="text/x-jquery-tmpl">
    <div><a id="${value}">${title} <i class="fa fa-times"></i></a></div>
</script>
<script name="vAxis" class="templates" type="text/x-jquery-tmpl">
    <div><a id="${name}" data-values="${values}" data-uom="${uom}">名称：<span>${title}</span> 方式：<span>${value}</span> 单位：<span>{{html Handle.setUom(uom)}}</span> <i class="fa fa-times"></i></a></div>
</script>

<div class="ad-doc-modal modal fade" id="ad-js-setStep" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body ad-doc-modal-body2">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <ul class="nav nav-tabs ad-doc-nav-tabs2" id="ad-js-stepTab">
                    <li class="active"><a href="#fixStep" data-toggle="tab">固定区间</a></li>
                    <li><a href="#userStep" data-toggle="tab">自定义区间</a></li>
                </ul>
                <div class="tab-content" id="ad-js-tabContent2">
                    <div class="tab-pane active" id="fixStep">
                        <form class="form-horizontal">
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <div class="input-group input-group-sm">
                                        <input type="text" class="form-control" placeholder="请输入范围最小值">
                                        <span class="input-group-addon ad-doc-noborderright ad-js-setuom">uom</span>
                                        <span class="input-group-addon input-group-addon-ext">至</span>
                                        <input type="text" class="form-control" placeholder="请输入范围最大值">
                                        <span class="input-group-addon ad-js-setuom">uom</span>
                                    </div>
                                </div>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control input-sm" placeholder="请输入固定区间">
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="tab-pane" id="userStep">
                        <form class="form-horizontal">
                            <div class="form-group">
                                <div class="col-sm-12">
                                    <div class="input-group input-group-sm">
                                        <input type="text" class="form-control" placeholder="请输入范围最小值" value="0">
                                        <span class="input-group-addon ad-doc-noborderright ad-js-setuom">uom</span>
                                        <span class="input-group-addon input-group-addon-ext">至</span>
                                        <input type="text" class="form-control" placeholder="请输入范围最大值">
                                        <span class="input-group-addon ad-doc-noborderright ad-js-setuom">uom</span>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" id="ad-js-addStep"><i class="fa fa-plus"></i> 添加步长</button>
                <button type="button" class="btn btn-primary" id="ad-js-submitStep"><i class="fa fa-check"></i> 确认保存</button>
                <button type="button" class="btn btn-danger" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<!-- 保存模型 -->
<div class="ad-doc-modal modal fade" id="ad-js-saveModel" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel"><i class="fa fa-cog"></i> 配置模型参数</h4>
            </div>

            <div class="modal-body">
                <form role="form" id="ad-js-saveModelForm">
                    <div class="form-group">
                        <div class="form-group-left">
                            <div id="ad-js-setStyle" class="style_0">
                                <a>
                                    <span id="ad-js-setIco" class="ico_0"></span>
                                    <b id="ad-js-setTitle">请输入分析模型标题</b>
                                </a>
                            </div>
                        </div>
                        <div class="form-group-right">
                            <label class="label-ext">
                                模型类型：
                            </label>
                            <div class="form-group form-group-radio">
                                <!--<label><input type="radio" value="1" name="isSystem"> 系统</label>-->
                                <label><input type="radio" value="0" name="isSystem" checked> 自定义</label>
                            </div>
                            <label class="label-ext">
                                选择图标类型：
                            </label>
                            <div class="form-group form-group-radio">
                                <label><input type="radio" value="default" name="icon"> 默认</label>
                                <label><input type="radio" value="0" name="icon" checked> 图标1</label>
                                <label><input type="radio" value="1" name="icon"> 图标2</label>
                                <label><input type="radio" value="2" name="icon"> 图标3</label>
                                <label><input type="radio" value="3" name="icon"> 图标4</label>
                                <label><input type="radio" value="4" name="icon"> 图标5</label>
                            </div>
                            <label class="label-ext">
                                选择图标背景色：
                            </label>
                            <div class="form-group form-group-radio">
                                <label><input type="radio" value="default" name="bg"> 默认</label>
                                <label><input type="radio" value="0" name="bg" checked> 背景色1</label>
                                <label><input type="radio" value="1" name="bg"> 背景色2</label>
                                <label><input type="radio" value="2" name="bg"> 背景色3</label>
                                <label><input type="radio" value="3" name="bg"> 背景色4</label>
                                <label><input type="radio" value="4" name="bg"> 背景色5</label>
                            </div>
                            <div class="form-group form-nomargin">
                                <input type="text" name="title" placeholder="请输入分析模型标题( 10个字以内 )" class="form-control input-sm" />
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </form>
                <form id="ad-js-saveDwhereForm">
                    <ul class="form-group ad-doc-s1-container form-group-checkbox">
                        <?php if(is_array($Condition)): $i = 0; $__LIST__ = $Condition;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$dw): $mod = ($i % 2 );++$i;?><li data-name="<?php echo ($dw["name"]); ?>"><label class="btn btn-default btn-sm"><input type="checkbox" name="<?php echo ($dw["name"]); ?>"/><?php echo ($dw["title"]); ?></label></li><?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="ad-js-saveModelBtn"><i class="fa fa-check"></i> 保存模型</button>
                <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> 取消</button>
            </div>
        </div>
    </div>
</div>

<!-- 搜索拓展选择 - 1 -->
<div class="modal fade" id="ad-js-searchModal1" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title"><i class="fa fa-pencil"></i> 请输入所需选项（用中文逗号‘，’分割）</h4>
            </div>
            <div class="modal-body" id="ad-js-searchModal1content">
                <textarea id="ad-js-searchModaltextarea" placeholder="融创嘉德庄园，保利爱尚里" class="form-control" rows="4"></textarea>
            </div>
            <div class="modal-footer">
                <button id="ad-js-searchModalbtn" type="button" class="btn btn-primary">确认保存</button>
                <button type="button" class="btn btn-danger" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>


<!-- 搜索拓展选择 - 2 -->
<div class="modal fade" id="ad-js-searchModal2" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title"><i class="fa fa-check-square-o"></i> 请选择所需选项</h4>
            </div>
            <div class="modal-body ad-doc-searchModal2content" id="ad-js-searchModal2content"></div>
            <script name="checkboxLayer" class="templates" type="text/x-jquery-tmpl">
                <label class="checkbox-inline" style="margin-left:0;">
                    <input type="checkbox" value="${value}" ${checked}> ${title}
                </label>
            </script>
            <div class="modal-footer">
                <button id="ad-js-searchModalCheckAll" type="button" class="btn btn-default">全选</button>
                <button id="ad-js-searchModalReCheck" type="button" class="btn btn-default">反选</button>
                <button id="ad-js-searchModalSubmit" type="button" class="btn btn-primary"><i class="fa fa-check"></i> 确认保存</button>
                <button id="ad-js-searchModalClose" type="button" class="btn btn-danger" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<input type="hidden" id="getViewDataPath" value="<?php echo U('Analysis/ViewData');?>"/>
<input type="hidden" id="getTableDataPath" value="<?php echo U('Analysis/AnalyzeData');?>"/>
<input type="hidden" id="getSavaModelPath" value="<?php echo U('Analysis/saveEgg');?>"/>
<input type="hidden" id="getrelationPath" value="<?php echo U('bdata/public/getrelation');?>" />
<input type="hidden" id="ad-js-RelationalPath" value="<?php echo U('AnalyzeDig/getDigDataResults');?>" />
<input type="hidden" id="ad-js-analysisType" value="0"/>
<input type="hidden" id="ad-js-analysisCode" value="<?php echo ($code); ?>"/>

</body>
<script src="/Application/Home/View/Public/sys/class/jquery.min.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/class/bootstrap.min.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/class/jquery.tmpl.min.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/class/select2.min.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/class/jquery.toastr.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/class/jquery.glDatePicker.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/class/jquery.zclip.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/lib/handle.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/app/analysis/control.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/app/analysis/model.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/class/echarts-plain-map.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/app/common/charts.control.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/lib/tableColorLevelRender.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/lib/canvasDown.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/lib/tableSort.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/lib/cascadeData.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/lib/relational.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/lib/handle.ext.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/lib/datagrid.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/app/analysis/cross.view.class.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/app/analysis/cross.app.js?_v=<?php echo (C("version")); ?>"></script>
<script src="/Application/Home/View/Public/sys/lib/public_run.js?_v=<?php echo (C("version")); ?>"></script>
<script>
    $('#copy').zclip({
        path:'/ZeroClipboard.swf',
        copy:function(){return $("#ad-js-tablecontainer div#dataExport").html();}
    });
</script>
</html>